<?php
/**
 * Created by: zhaoyi (834574377@qq.com)
 * Time: 2023/1/4 10:29
 * Blog: https://www.yuque.com/huangzhenlian
 */

declare(strict_types=1);

namespace App\Application\Admin\Controller\RequestParam;

use App\Annotation\RequestParam;
use App\Controller\RequestParam\BaseRequestParam;

#[RequestParam]
class VipSubmitRequestParam extends BaseRequestParam
{
    protected array $rules = [
        'name' => 'required|max:15',
        'store_id' => 'required',
        'price' => 'required',
        'give_price' => 'required',
        'end_time' => 'required',
        'status' => 'required',
        'sort' => 'required',
    ];
    protected array $message = [
        'name.required' => '请输入活动名称',
        'name.max' => '套餐名称最长15个字',
        'store_id.required' => '请选择门店',
        'price.required' => '请输入充值金额',
        'give_price.required' => '请输入赠送金额',
        'end_time.required' => '请选择过期时间',
        'status.required' => '请选择状态',
        'sort.required' => '请输入排序',
    ];
    private int $vip_id = 0;
    private string $name = '';
    private int $store_id = 0;
    private float $price = 0;
    private float $give_price = 0;

    private int $status = 0;

    private string $end_time = '';
    private int $sort = 100;
    /**
     * @return int
     */
    public function getVipId(): int
    {
        return $this->vip_id;
    }

    /**
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }
    /**
     * @return string
     */
    public function getEndTime(): string
    {
        return $this->end_time;
    }
    /**
     * @return int
     */
    public function getStoreId(): int
    {
        return $this->store_id;
    }

    public function getSort(): int
    {
        return $this->sort;
    }


    /**
     * @return float
     */
    public function getPrice(): float
    {
        return $this->price;
    }
    /**
     * @return float
     */
    public function getGivePrice(): float
    {
        return $this->give_price;
    }

    /**
     * @return int
     */
    public function getStatus(): int
    {
        return $this->status;
    }


}